<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // (function (){
        //     let num=10
        // })();
        // (function () {
        //      let num=20   
        //     }());
        let second=+prompt('请输入数字')
       
        let transTime=function(t){
            h=parseInt(t/3600%24)
            m=parseInt(t/60%60)
            s=parseInt(t%60)
            if(h<10){
                h='0'+h
            }
            if(m<10){
                m='0'+m
            }
            if(s<10){
                s='0'+s
            }
            return `${h}时:${m}分:${s}秒`
        }
        let time=transTime(second)
        document.write(time)
    </script>
</body>
</html>